package cn.tedu.bonfire.front.payment.service;

import cn.tedu.bonfire.front.payment.pojo.param.AliPayParam;
import com.alipay.api.AlipayApiException;

import java.io.IOException;
import java.util.Map;

public interface IPayModelService {

    /**
     * 支付宝支付接口
     * @param userId
     * @param aliPayParam
     * @return
     */
    String aliPay(Long userId, AliPayParam aliPayParam) throws AlipayApiException, IOException;

    /**
     * 更新订单状态
     * @param outTradeNo
     */
    void updateOrderStatus(String outTradeNo);

    boolean aliSignature(Map<String, String> params) throws AlipayApiException;}
